# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=swaks
pkgver=20201014.0
pkgrel=1
pkgdesc="Swiss Army Knife for SMTP"
url="https://www.jetmore.org/john/code/swaks/"
license="GPL-2.0-or-later"
arch="noarch"
options="!check" # tarball does not contain test suite
depends="perl"
subpackages="$pkgname-doc"
source="https://www.jetmore.org/john/code/swaks/files/swaks-$pkgver.tar.gz"

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname doc/*
}

sha512sums="8a4e8dc810a9c5943afdbc4db7130e110c42e211d6927ce1cdbab6f81fa49c31490e6c3668ec3cea79580c07b281ce30901b3b4a71325951167158cc9d70d9cc  swaks-20201014.0.tar.gz"
